package jsen.tool.ddd.demo.domain.parking.event;

import jsen.tool.ddd.adapter.event.DomainEvent;
import lombok.Builder;
import lombok.Getter;

/**
 * @author jsen
 * @date 2021/10/6
 */
@Builder
@Getter
public class ParkingStatusChange implements DomainEvent {

    private final int freeLocationCnt;
    private final int busyLocationCnt;
    private final long time = System.currentTimeMillis();

    @Override
    public int getVersion() {
        return 0;
    }

    @Override
    public long getOccurredOn() {
        return time;
    }

    @Override
    public String getId() {
        return "x";
    }

}
